/**
 *
 * The MIT License
 *
 * Copyright (c) 2008 Board of Trustees, Leland Stanford Jr. University. All rights reserved.
 * Copyright (c) 2009 Ben Suter. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:

 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.

 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.macdadi.core.client.domain;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * @author Ben Suter <ben.suter@gmail.com>
 */
public interface DataServiceAsync
{
    void getProject(int id, AsyncCallback async);

    void getGoals(int projectId, String authToken, AsyncCallback async);

    void getLeafGoalWeights(int projectId, String authToken, AsyncCallback async);

    void getOptions(int projectId, String authToken, AsyncCallback async);

    void getStakeholderGroups(int projectId, String authToken, AsyncCallback async);

    void getPreferencesForUser(int projectId, int userId, String authToken, AsyncCallback async);

    void getPreferencesForStakeholderGroup(int projectId, int stakeholderGroupId, String authToken, AsyncCallback async);

    void getPreferencesForProject(int projectId, String authToken, AsyncCallback async);

    void getImpacts(int projectId, String authToken, AsyncCallback async);

    void getOptionValues(int projectId, String authToken, AsyncCallback async);

    void getAggregatePreferencesForUser(int projectId, int userId, String authToken, AsyncCallback async);

    void getAggregatePreferencesForStakeholderGroup(int projectId, int stakeholderGroupId, String authToken, AsyncCallback async);

    void getAggregatePreferencesForProject(int projectId, String authToken, AsyncCallback async);

    void getProjectMembers(int projectId, boolean onlyActiveMembers, int excludeStakeholderGroup, String authToken, AsyncCallback async);

    void getDesigners(int projectId, String authToken, AsyncCallback async);

    void getDecisionMakers(int projectId, String authToken, AsyncCallback async);

    void findUsers(int projectId, boolean onlyActiveUsers, boolean excludeThisProject, String pattern, String authToken, AsyncCallback async);

    void listProjects(String[] keywords, boolean recentOnly, boolean membershipOnly, String authToken, AsyncCallback async);

    void listNewsItems(String authToken, AsyncCallback async);
}
